﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RprjData.aspx.cs" Inherits="Research.Web.RprjData" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>资料上传</title>
</head>
<body>

    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="sfRprjData"/>   
    <ext:SimpleForm ID="sfRprjData" runat="server" BodyPadding="5px" 
        EnableBackgroundColor="true" Title="资料上传" Width="350px" ShowHeader="False">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnClose" runat="server" Text="关闭" OnClick="btnClose_Click">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:TextBox ID="txtDataName" runat="server" Label="文件名称" Text="" Required="True" ShowRedStar="True">
            </ext:TextBox>
            <ext:FileUpload ID="fupldData" runat="server" Label="选择文件" EmptyText="请选择上传文件">
            </ext:FileUpload>
            <ext:Button ID="btnUpload" runat="server" Text="上传" Icon="SystemSave" 
                ValidateForms="sfRprjData" OnClick="btnUpload_Click">
            </ext:Button>
            <ext:Grid runat="server" EnableRowNumber="True" EnableCheckBoxSelect="False" 
                EnableMultiSelect="False" EnableRowClick="True" Height="250px"
                Title="资料上传" ID="gridRprjData" DataKeyNames="RprjID,DataTypeID,DataPath" >
                <Columns>
                    <ext:BoundField Width="130px" DataField="DataName" HeaderText="资料名称" DataToolTipField="DataName"/>
                    <ext:BoundField Width="80px" DataField="UploadDate" HeaderText="上传日期" DataFormatString="{0:d}"/>
                    <ext:WindowField ColumnID="winShowData" Width="80px" WindowID="windowShowData" HeaderText="操作" Text="查看"
                    DataTextFormatString="{0}" DataIFrameUrlFields="DataPath"
                    DataIFrameUrlFormatString="ShowData.aspx?DataPath={0}" DataWindowTitleField="DataName" Icon="Eye"
                    DataWindowTitleFormatString="显示资料" />
               
                </Columns> 
            </ext:Grid>
        </Items>
    </ext:SimpleForm>
    <ext:Window ID="windowShowData" Title="文件操作" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="Hide" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        Target="Top" IsModal="True" Width="100px" Height="100px">
    </ext:Window>
    </form>
</body>
</html>
